require! <[
  koa-static
  chalk
]>
require! {
  koa:Koa
}

module.exports = (dir, port)~>
  app = new Koa()
  app.use(require('koa-static')(dir, {
    hidden:true
  }))
  app.listen(port)

  url = "http://127.0.0.1:#{port}"

  console.log "\n#{chalk.green \服务启动成功}\n\n#{chalk.underline.blueBright url}\n\n#{chalk.gray 'Ctrl+C 退出'}\n"
